package com.fuyao.cloud.common.biz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fuyao.cloud.common.biz.dto.PageQuery;

/**
 * @author lyhills
 * @Description
 * @date 2023/6/9 11:44
 * @Version 1.0
 */
public interface FyBaseService<T> extends IService<T> {

    /**
     * 创建方法
     *
     * @return 创建VO对象
     */
    T create();

    void onCreated(T entity);

    Page<T> getPage(PageQuery<T> pageQuery);
}
